/*
 * EnigmaGM - A feature rich guild management system.
 * Copyright (C) 2007 ajiaojr.
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */
package org.ajiaojr.enigmagm.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Service for accessing DKP points from the underlying storage.
 * 
 * @author ajiaojr
 */
public interface PointServiceAsync {
  /**
   * @param characterID
   * @param firstResult
   * @param maxResults
   * @return
   * @throws DataAccessException
   */
  public void findByCharacterID(int characterID, int firstResult,
      int maxResults, AsyncCallback callback);

  /**
   * Finds all point instances associated to the given point system ID.
   * 
   * @param pointSystemID
   *          The ID identifying the point system.
   * @param sortAttribute
   *          The attribute according to which the results are sorted.
   * @paran ascending Whether to sort the results in ascending order.
   * @param firstResult
   *          Index for the first result.
   * @param maxResults
   *          Maximum number of results.
   * @return A <code>List</code> containing the points found.
   * @throws DataAccessException
   */
  public void findByPointSystemID(int pointSystemID, String sortAttribute,
      boolean ascending, int firstResult, int maxResults, AsyncCallback callback);
}
